package com.zzxy.spring34.controller;

import com.zzxy.spring34.service.IStudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

@Controller
public class StudentController {
    @Autowired
   /* private IUserService userService;

    public IUserService getUserService() {
        return userService;
    }

    public void setUserService(IUserService userService) {
        this.userService = userService;
    }
*/

    private IStudentService studentService;

  /*  public IStudentService getStudentService() {
        return studentService;
    }

    public void setStudentService(IStudentService studentService) {
        this.studentService = studentService;
    }*/

    public void addStudent(String username,String password) {
        //1.service
    studentService.addStudent(username,password);
    }
}
